package com.hsmpay.mobile.service.account;

import com.hsmpay.common.service.BaseService;
import com.hsmpay.mobile.pojo.organization.Organization;

import java.io.Serializable;
import java.util.List;

/**
 * Created by zhy on 15/11/19.
 */
public interface OrganizationService<Entity extends Serializable,Query extends Object> extends BaseService<Entity,Query> {


    /**
     * 获取子节点
     * @return
     * @throws Exception
     */
    public List<Organization> searchSonList(Long parentId) throws Exception;

    /**
     * 根据Id 查询机构   包括删除的 和没有审核通过的
     * @param id
     * @return
     * @throws Exception
     */
    public Organization searchOrganizationAllById(Long id) throws Exception;

    /**
     * 查询所有父级名称  2及父级-3级父级-...
     * @param parentOrgId
     * @return
     * @throws Exception
     */
    public String getAllParentNameByParentOrgId(Long parentOrgId)throws Exception;


}
